package com.stlm2.dems.entity;

/**
 * Created by fusyunu on 2016/11/2.
 */
public enum IndexConfigType {
	//1:首页标签2:首页轮播图3:功能菜单
	IndexLabel(1) {
		public String toString() {
			return "首页标签";
		}
	},
	IndexSlideshow(2) {
		public String toString() {
			return "首页轮播图";
		}
	},
	functionMenu(3) {
		public String toString() {
			return "功能菜单";
		}
	};

	private final int val;

	IndexConfigType(int n) {
		val = n;
	}

	public int getIntValue() {
		return val;
	}

	public static IndexConfigType getByIntValue(int n) {
		switch (n) {
			case 1:
				return IndexLabel;
			case 2:
				return IndexSlideshow;
			case 3:
				return functionMenu;
			default:
				return null;
		}
	}
}
